<?php

if( !defined('IN_SEC') ){
	exit('Access Denied.');
}

class App{
	
	private static $app = null;
	private static $path = '';

	public static function init($config = array(), $reload = false){
		if( !$reload && !self::$app ){
			self::$app = $config;
		}
		return self::$app;
	}

	public static function install(){
		self::$app['time'] = self::$app['time'] ? self::$app['time'] : time();
		file_put_contents(SEC_SYS_PATH . '/data/apps/' . self::$app['name'] . '.app');
	}

	public static function uninstall(){}
	
	public static function build(){
		$build = file_get_contents(SEC_SYS_PATH . '/build.php');
		
	}

}

?>